Remove `information_schema` from SQL dump
NickName:CrimsonGT Ask DateTime:2013-11-26T12:17:41

Remove `information_schema` from SQL dump

I am attempting to import a 40GB SQL backup on one of my servers and the software I used to automate the backups apparently included the "information_schema". Are there any tools/scripts/etc. that could be used to remove this data?

Due to the size of the SQL file, I have tried Notepad++ (file too large) and other Text Editors make it very difficult to tell what information belongs to the information_schema.

About at my wit's end and hoping there is something that could simplify removing this data from the SQL dump. I tried running the import with "-f" to force past it but it made what appears to be a bit of a mess.

Copyright Notice:Content Author:「CrimsonGT」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/20208399/remove-information-schema-from-sql-dump

More about “Remove `information_schema` from SQL dump” related questions

Remove `information_schema` from SQL dump

I am attempting to import a 40GB SQL backup on one of my servers and the software I used to automate the backups apparently included the "information_schema". Are there any tools/scripts/etc. that ...

Show Detail

Remove trigger from information_schema DB

At school, we are learning to write triggers in SQL and I wrote one, but it's wrong. Therefore, I would like to delete it. I tried the following: mysql> use information_schema Database changed...

Show Detail

automate a dump of information_schema

I'm looking for a way to backup all the database on MySQL. I've written a batch file which runs mysqldump and it's working fine. Unfortunately I'm using MySQL 5.0 and can't upgrade to the newer v...

Show Detail

How to restore the information_schema database with a backup

I have a backup from a WAMP server MYSQL database from home and I need to install it on my work WAMP setup. I currently don't have access to my original database and so, can't just export specific

Show Detail

SQL Server INFORMATION_SCHEMA contents

In most RDBMS, the meta-model is "self contained", which means that I can find out the model of the meta-model by browsing the meta-model itself. This doesn't seem to be the case with SQL Server. W...

Show Detail

sed remove DEFINER from sql dump

I have already googled and tried may suggestions but none seem to be able to remove all 'DEFINER=' occurrences. Remove DEFINER clause from MySQL Dumps These are some of the occurrences /*!50013

Show Detail

dump.sql contanins also events

I just want to know if, when I create a backup (dump.sql) of my mysql db, it will contains also events that I create and that perform changes in my db for example every day. The events will be stor...

Show Detail

Is there a SQL information_schema XSD definition?

In SQL:2008, and also previous standards, the INFORMATION_SCHEMA is described as the standard meta-schema. In principle, meta-data could be unloaded into XML for further processing and reverse-

Show Detail

Remove permission of information_schema table for particular user

Whenever I create any user then I don't want to show information_schema table to that user. Is it possible to remove permission of information_schema table for particular user ?

Show Detail

AWS athena SQL query on information_schema is failing

I am trying to get metadata from AWS athena by running SQL query as: SELECT table_catalog, table_schema, table_name FROM information_schema.tables WHERE table_schema = 'information_schema' when I...

Show Detail